package com.sl.au.service;

import java.util.List;
import java.util.Map;

import com.sl.au.entity.ConfigDetailForCRM;
import com.sl.au.entity.ConfigMainForCRM;
import com.sl.au.entity.MFOldPartRelation;
import com.sl.au.entity.ProductPlanForCRM;
import com.sl.au.repository.ConfigDetailForCRMRepository;

public interface ConfigDetailForCRMService extends BaseService {
	ConfigDetailForCRMRepository getConfigDetailForCRMRepository();
	
	List<ProductPlanForCRM> getContractDetails(int start, int length, Map<String, String> condition, String orderName, String dir);
	
	long getDetailsContractCount( Map<String, String> condition);
	
	List<ConfigDetailForCRM> getDetails(int start, int length, Map<String, String> condition, String orderName, String dir);
	long getDetailsCount(Map<String, String> condition);
	
	List<MFOldPartRelation> getMFDetails(int start, int length, Map<String, String> condition, String orderName, String dir);
	long getMFDetailsCount(Map<String, String> condition);

	int saveOtherER(String[] id, String quoteId, int indexOrder);
	int saveOtherERquoteFor(String[] id, String quoteId);
	
	int saveOtherERMF(String[] id, String quoteId); 
	
	int saveOtherEROld(String[] id, String quoteId);
	
	List<ConfigMainForCRM> getconfigmainlist(String opid);

	List<MFOldPartRelation> getpagemfsecond(int type, String key, int opid);
}
